#ifndef PROJECTS_H
#define PROJECTS_H
#include "query.h"

class Query;//forward declaration

/**
* \class Projects
* \brief Will retrieve the projects assigned to a user from the database in a numbered or unnumbered fashion. 
* used in this project to get the projects of the user
* \author Elie M. Shaccour (elie.shaccour@gmail.com)
* 
*/


class Projects{

private:
/*! Query class object to perform the DB queries */
	Query GetProjects;
public:
	Projects();
	~Projects();

        /**     \brief Get the objects of the database numbered and return their count
        *       \param Projects String that will contain the projects for the user
        *       \return The total number of projects for the user
        */
	int GetProjectsNumbered(std::string &Projects);

        /**     \brief Gets name of project at index k
        *       \param ProjectPosition Index k
        *       \return Project_name at index k
        */
	std::string GetProjectNameAtPosition(int ProjectPosition);

        /**     \brief Get the objects of the database unnumbered and return their count
        *       \param Projects String that will contain the projects for the user
        *       \return The total number of projects for the user
        */
	int GetProjectsUnnumbered(std::string &Projects);
};

#endif
